package net.zjitc.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class Book {

    private Integer id;

    private String name;
    //书籍封面
    private String cover;
    //出版商
    private String publisher;

    private String author;

    private String isbn;

    private Integer num;
    //书籍的简介
    private String detail;

    private Integer bookShelfId;

    private Integer categoryId;
    //是否计划购买
    private Boolean isPlanBuy;

    private LocalDate planBuyTime;
    //入库时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
